home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swags_z.zip / SOUND.SWG / 0035_Format for WAV Files.pas < prev    next >
Pascal/Delphi Source File  |  1993-11-02  |  4KB  |  78 lines

  1. {
  2. EDWARD SCHLUNDER
  3.  
  4. > Hey everyone.. I am requesting some info on the File format of MOD
  5. > Files  and also WAV Files. I would Really appreciate any help on this topic.
  6.  
  7. Well, the MOD File format has been posted over the place many times, so I
  8. won't post THAT again. But here comes the WAV File format that you wanted..
  9.  
  10.                WAV File Format. Written by Edward Schlunder.
  11.                         Information from Tony Cook
  12.  
  13.  Byte(S)        NORMAL CONTENTS               PURPOSE/DESCRIPTION
  14.  ---------------------------------------------------------------------------
  15.  
  16.  00 - 03        "RIFF"                        Just an identification block.
  17.                                               The quotes are not included.
  18.  
  19.  04 - 07        ???                           This is a long Integer. It
  20.                                               tells the number of Bytes long
  21.                                               the File is, includes header,
  22.                                               not just the Sound data.
  23.  
  24.  08 - 11        "WAVE"                        Just an other I.D. thing.
  25.  
  26.  12 - 15        "fmt "                        Just an other I.D. thing.
  27.  
  28.  16 - 19        16, 0, 0, 0                   Size of header to this point.
  29.  
  30.  20 - 21        1, 0                          Format tag. I'm not sure what
  31.                                               'Format tag' means, but I
  32.                                               believe it has something to
  33.                                               do With how the File is
  34.                                               formated, so that if someone
  35.                                               wants to change the File
  36.                                               format to include something
  37.                                               new, they could also change
  38.                                               this to show that it's a
  39.                                               different format.
  40.  
  41.  22 - 23        1, 0                          Channels. Channels is how many
  42.                                               Sounds to be played at once.
  43.                                               Sound Blasters have only one
  44.                                               channel, and this is probably
  45.                                               why this is normally set to 1.
  46.                                               The Amiga has 4 (hence 4
  47.                                               channel MODs) channels. The
  48.                                               Gravis Ultra Sound has many
  49.                                               more, I believe up to 32.
  50.  
  51.  24 - 27        ???                           Sampling rate, or (in other
  52.                                               Words), samples per second.
  53.                                               This is used to determine
  54.                                               how fast to play the WAV. It
  55.                                               is also essentially the same
  56.                                               as Bytes 28-31.
  57.  
  58.  28 - 31        ???                           Average Bytes per second.
  59.  
  60.  32 - 33        1, 0                          Block align.
  61.  
  62.  34 - 35        8, 0                          Bits per sample. Ex: Sound
  63.                                               Blaster can only do 8, Sound
  64.                                               Blaster 16 can make 16.
  65.                                               Normally, the only valid values
  66.                                               are 8, 12, and 16.
  67.  
  68.  36 - 39        "data"                        Marker that comes just before
  69.                                               the actual sample data.
  70.  
  71.  40 - 43        ???                           The number of Bytes in the
  72.                                               sample.
  73.  
  74.       There, I hope you like it.. if you ever have any needs For Sound
  75.    card or just Sound related Programming information, give me a *bang*
  76.    and I'll run... I might be late replying, but I will get back to you.
  77. }
  78.